package com.hserver.beetlsql.dao;

import cn.hserver.plugin.beetlsql.annotation.BeetlSQL;
import com.hserver.beetlsql.bean.User;
import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.Sql;

import java.util.List;

/**
 * 使用的数据源1
 */
@BeetlSQL("data_1")
public interface UserDao1 extends BaseMapper<User> {

    @Sql("update user set age = ? where id = ?")
    void update(Integer age,int id);

    List<User> select();
}
